package org.bbs.demo.user.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

@Data
public class UserUpdatePwdDto {
    @Null
    private String user_id;     //账号id

    @NotBlank(message = "旧密码不得为空")
    @Size(min = 5, max = 16, message = "旧密码长度不符")
    private String oldPwd;      //旧密码

    @NotBlank(message = "新密码不得为空")
    @Size(min = 5, max = 16, message = "新密码长度不符")
    private String newPwd;      //新密码
}
